import java.util.Arrays;

public class Triangle {

    public enum TriangleType {
        NORMAL(0),
        NON_TRIANGULAR(1),
        EQUILATERAL(2),
        ISOSCELES(3);

        private int value;

        TriangleType(int v) {
            this.value = v;
        }

        static TriangleType valueOf(int v) {
            return switch (v) {
                case 0 -> NORMAL;
                case 1 -> NON_TRIANGULAR;
                case 2 -> EQUILATERAL;
                case 3 -> ISOSCELES;
                default -> null;
            };
        }

    }

    public static TriangleType classify(int a, int b, int c) {
        int[] edges = {a, b, c};
        Arrays.sort(edges);
        a = edges[0];
        b = edges[1];
        c = edges[2];

        if (a <= 0)
            return TriangleType.NON_TRIANGULAR;

        if (a == c)
            return TriangleType.EQUILATERAL;

        if (a == b || b == c)
            return TriangleType.ISOSCELES;

        if (a + b > c)
            return TriangleType.NORMAL;

        return TriangleType.NON_TRIANGULAR;
    }
}
